package com.boot.config;

import com.boot.entity.User;
import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.List;
import java.util.Map;

@Data
@ToString
@Configuration
@ConfigurationProperties(prefix = "data")
@PropertySource(value = "classpath:data.properties",encoding = "UTF-8")
public class AppConfig {

    private Map<String, String> person;

    private List<String> list;

    private User user;

}
